package com.atguigu.gulimall.ware.service;

import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.ware.entity.PurchaseEntity;
import com.atguigu.gulimall.ware.vo.MergeVo;
import com.atguigu.gulimall.ware.vo.PurchaseDoneVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * 采购信息
 *
 * @author xuegang
 */
public interface PurchaseService extends IService<PurchaseEntity> {
    /**
     * 列表
     *
     * @param params 分页查询实体对象Map
     */
    PageUtils queryPage(Map<String, Object> params);

    /**
     * 合并采购需求
     *
     * @param mergeVo 采购实体对象
     */
    void mergePurchase(MergeVo mergeVo);

    /**
     * 查询未领取的采购单
     *
     * @param params 分页查询实体对象Map
     */
    PageUtils queryPageUnreceivePurchase(Map<String, Object> params);

    /**
     * 领取采购单
     *
     * @param ids 采购单id
     */
    void received(List<Long> ids);

    /**
     * 完成采购
     *
     * @param doneVo 采购实体Vo
     */
    void done(PurchaseDoneVo doneVo);
}
